<?php
/**
 * 留言板组件
 */
namespace frontend\widgets\feed;

use frontend\models\FeedForm;
use yii\base\Widget;
use Yii;

class FeedWidget extends Widget
{
    public function run()
    {
        $feed = new FeedForm();
        $data['feed'] = $feed->getList();
        return $this->render('index', ['data' => $data]);
    }
}